<template>
	<view class="backBox">
		<navBar title="订单完成"></navBar>
		<view class="imgBox">
			<image class="img" mode="aspectFit" src="https://gd-hbimg.huaban.com/db43391f1abd3d4c80499409614729c9dfb7480addcd2-8wfPtc_fw658webp"></image>
			<view class="title">支付成功</view>
		</view>
		<view class="buttonBox">
			<view class="button look" @click="toDetail">查看订单</view>
			<!-- <view class="button" @click="navBack">返回主页</view> -->
		</view>
	</view>
</template>

<script>
import navBar from '../../components/navbars/navbars.vue'
	export default {
		data() {
			return {
				id:''
			}
		},
		components:{
			navBar
		},
		methods: {
			navBack(){
				uni.reLaunch({
					url:'/pages/home/home'
				})
			},
			toDetail() {
				uni.navigateTo({
					url: '/pages-order/detail/detail?id='+ this.id
				})
			},
		},
		onLoad(e) {
			this.id = e.id
			console.log('this.id ',this.id );
		}
	}
</script>

<style lang="scss" scoped>
	
	.buttonBox{
		display: flex;
		justify-content: center;
		padding: 0px 20px;
		.button{
			box-sizing: border-box;
			font-size: 14px;
			border: 1px solid $grey;
			padding: 6px 15px;
			border-radius: 20px;
		}
		.look{
			box-sizing: border-box;
			background-color: $blue;
			color: white;
			border: none;
		}
	}
	
	.imgBox{
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		margin: 30px 0px;
		margin-top: 15vh;
		.img{
			width: 70px;
			height: 70px;
		}
		.title{
			font-weight: bold;
		}
	}
	
	.backBox{
		background-color: $MainBackColor;
		min-height: 100vh;
	}
	
</style>
